package com.itlong.cloud.paymenthub;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * <desc>
 * 运营-银联转账-服务接口暴露.
 * </desc>
 *
 * @createDate 2018/9/1
 */
@FeignClient(name = "payment-hub-service")
public interface IChinaPayTransferAccountServiceClient {


    /**
     * <desc>
     *      根据项目编号和金额向物业公司转账
     * <desc/>
     *
     * @param cashIds 提现记录ID,逗号分隔
     * @return
     * @author Juguang.S
     * @createDate 2018-09-01
     */
    @PostMapping(path = "/pay/transferAccount")
    void transferAccount(@RequestParam("cashIds") String cashIds,@RequestParam("myUserName") String myUserName) throws  Exception;

    /**
     * <desc>
     *      查询将要转账的总金额
     * <desc/>
     *
     * @param cashIds 提现记录ID,逗号分隔
     * @return
     * @author Juguang.S
     * @createDate 2018-09-23
     */
    @PostMapping(path = "/pay/getTotal")
    String getTotal(@RequestParam("cashIds") String cashIds);

    /**
     * <desc>
     *      查询将要转账的总金额
     * <desc/>
     *
     * @return
     * @author Juguang.S
     * @createDate 2018-09-23
     */
    @PostMapping(path = "/pay/getAccountBalance")
    String getAccountBalance() throws Exception;

    /**
     * <desc>
     *      查询银联交易结果状态
     * <desc/>
     *
     * @return
     * @author Juguang.S
     * @createDate 2018-09-25
     */
    @PostMapping(path = "/pay/getTradeStatus")
    void timeTaskGetOrderStatus() throws Exception;

    /**
     * <desc>
     *      获取银联的手续费
     * <desc/>
     *
     * @return
     * @author Juguang.S
     * @createDate 2018-10-10
     */
    @PostMapping(path = "/pay/getChinaPayHandFee")
    String getChinaPayHandFee();

}
